package cn.com.hfuu.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;

import cn.com.hfuu.dao.farmmedcineMapper;
import cn.com.hfuu.module.code;
import cn.com.hfuu.module.farmmedcine;

@Service("medcineservice")
public class MedcineService {
	@Autowired
	farmmedcineMapper medmap;

	public java.util.List<farmmedcine> selectPage(Integer start, Integer limit,
			int state, String ids) {
		// TODO Auto-generated method stub
		return medmap.selectPage(start,limit,state,ids);
	}

	public java.util.List<farmmedcine> selectPagetotal(int state, String ids) {
		// TODO Auto-generated method stub
		return medmap.selectPagetotal(state,ids);
	}

	public int insert(farmmedcine fm) {
		// TODO Auto-generated method stub
		return medmap.insertSelective(fm);
	}

	public farmmedcine selectbyid(String id) {
		// TODO Auto-generated method stub
		return medmap.selectByPrimaryKey(id);
	}

	public int update(farmmedcine fm) {
		// TODO Auto-generated method stub
		return medmap.updateByPrimaryKeySelective(fm);
	}

	public int delete(String[] ids) {
		// TODO Auto-generated method stub
		return medmap.deletes(ids);
	}
	
}
